namespace Basmus.Tests
{
    public struct TestGenericStruct<T>
    {
        public int Value1;

        public T Value2;

        public override bool Equals(object obj)
        {
            return obj != null && obj is TestGenericStruct<T> && Equals((TestGenericStruct<T>) obj);
        }

        public bool Equals(TestGenericStruct<T> other)
        {
            return other.Value1 == Value1 && Equals(other.Value2, Value2);
        }

        public override int GetHashCode()
        {
            unchecked
            {
                return (Value1*397) ^ Value2.GetHashCode();
            }
        }
    }
}